package com.xiaoshuidi.cloud.module.system.api.oss;

import com.xiaoshuidi.cloud.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.InputStream;

@FeignClient(name = ApiConstants.NAME) // TODO 芋艿：fallbackFactory =
@Tag(name =  "RPC 服务 - 短信验证码")
public interface OosApi {
    String PREFIX = ApiConstants.PREFIX + "/oauth2/sms/code";

    @GetMapping(PREFIX + "oos-download-file")
    InputStream oosDownloadFile(@RequestParam("path") String path);

}
